$.fn.sjzdcombobox = function (sybm) {
    var option = {
        url: $.webPath() + '/base/sjzdsy/get_sjzdz?bm=' + sybm,
        valueField: 'id',
        textField: 'z',
        multiple: false,
        editable: false,
        panelHeight: '100'
    }

    this.combobox($.createArg(option, arguments));
}

// "sl"
$.fn.slsjzdcombobox = function (sybm) {
    var option = {
        url: $.webPath() + '/base/sjzdsy/get_sjzdz?bm=' + sybm,
        valueField: 'z',
        textField: 'z',
        multiple: false,
        editable: false,
        panelHeight: '100'
    }

    this.combobox($.createArg(option, arguments));
}

$.fn.bgslsjzdcombobox = function (sybm) {
    var option = {
        url: $.webPath() + '/base/sjzdsy/get_sjzdz?bm=' + sybm,
        valueField: 'bm',
        textField: 'z',
        multiple: false,
        editable: false,
        panelHeight: '100'
    }

    this.combobox($.createArg(option, arguments));
}

$.fn.bzjsjzdcombobox = function (sybm) {
    var option = {
        url: $.webPath() + '/base/sjzdsy/get_sjzdz?bm=' + sybm,
        valueField: 'id',
        textField: 'z',
        multiple: false,
        editable: false,
        panelHeight: '100',
        onSelect: function (record) {
            if (record.z == '现金') {
                $("#form_bzj [name='change_type']").hide();
            } else if (record.z == '承兑') {
                $("#form_bzj [name='change_type']").show();
            }

        }
    }

    this.combobox($.createArg(option, arguments));
}


$.fn.fkfssjzdcombobox = function (sybm) {
    var option = {
        url: $.webPath() + '/base/sjzdsy/get_sjzdz?bm=' + sybm,
        valueField: 'id',
        textField: 'z',
        multiple: false,
        editable: false,
        panelHeight: '100',
        onSelect: function (record) {
            if (record.z == '现汇') {
                $("#form_sksh [name='change_type1']").hide();
            } else if (record.z == '承兑') {
                $("#form_sksh [name='change_type1']").show();
            }

        }
    }

    this.combobox($.createArg(option, arguments));
}